package com.longe.esaypoi.importexcel;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.longe.entity.User;

import java.io.File;
import java.util.List;

public class FirstSimpleDemo {

    public static void main(String[] args) {

        ImportParams importParams = new ImportParams();
        importParams.setStartRows(2);
        List<User> list = ExcelImportUtil.importExcel(new File("D:\\TEST_EASY_POI\\testImport.xlsx"), User.class, importParams);

        for (User user : list) {
            System.err.println(user);
        }
    }
}
